cmake_minimum_required(VERSION 3.16)

# include(${COMMON_CMAKE_INCLUDE_PATH}/common.cmake)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED True)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

project(libcppcommon)

set(SOURCES
    filehelper.cpp
)

include_directories(${CMAKE_SOURCE_DIR}/inc)

add_library(cpp_common SHARED ${SOURCES})

install(TARGETS cpp_common
    LIBRARY DESTINATION lib
    # ARCHIVE DESTINATION lib
    # RUNTIME DESTINATION bin
)

